<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ include file="/manage/system/pageBase.jsp" %>
<%@ taglib uri="http://shiro.apache.org/tags" prefix="shiro"%>
<%@ page info="服务客户" %>

<style>
    table {
        table-layout: fixed; /* 只有定义了表格的布局算法为fixed，下面td的定义才能起作用。 */
        width:100%;
    }

    td {
        word-break: keep-all; /* 不换行 */
        white-space: nowrap; /* 不换行 */
        overflow: hidden; /* 内容超出宽度时隐藏超出部分的内容 */
        text-overflow: ellipsis; /* 当对象内文本溢出时显示省略标记(...) ；需与overflow:hidden;一起使用*/
    }

</style>
<form action="<%=path %>/manage/custservice" method="post">
    <div style="height:auto!important;height:550px;min-height:550px;">
        <h3 style="border-bottom: 1px solid #D7D7D7;color: #666666;font-size: 28px;padding-bottom: 20px;margin-bottom: 30px;">
            <%=getServletInfo()%>
            <shiro:hasPermission name="custservice:toAdd">
            <a href="toAdd" class="btn btn-primary"
               style="padding: 2px 15px;float:right;">
                <i class="icon-plus "></i>新增
            </a>
            </shiro:hasPermission>
        </h3>
        <table class="table table-bordered table-hover table-striped" >
            <tr >
                <th width="5%">序号</th>
                <th width="10%">客户名称</th>
                <th width="10%">联系人</th>
                <th width="10%">联系电话</th>
                <th width="10%">单位地址</th>
                <th width="30%">项目地址</th>
                <th width="10%">单位logo</th>
                <th width="10%" align="center">操作</th>
            </tr>
            <c:forEach var="item" items="${pager.list}">
                <tr>
                    <td>${item.id}</td>
                    <td>${item.custname}</td>
                    <td>${item.contactperson}</td>
                    <td>${item.tel}</td>
                    <td>${item.address}</td>
                    <td>${item.appname}</td>
                    <td><a href="<%=SystemManage.getInstance().getSystemSetting().getImageRootPath()%>${item.logourl}" target="_blank"><img  src="<%=SystemManage.getInstance().getSystemSetting().getImageRootPath()%>${item.logourl}" width="20px" height="20px"></a></td>
                    <td>
                        <shiro:hasPermission name="custservice:toEdit">
                        <a href="toEdit?id=${item.id}">编辑</a>&ensp;
                        </shiro:hasPermission>
                        <shiro:hasPermission name="custservice:toDel">
                        <a href="toDel?id=${item.id}">删除</a>
                        </shiro:hasPermission>
                    </td>
                </tr>
            </c:forEach>
            <tr>
                <td colspan="71" style="text-align: center;">
                    <%@ include file="/manage/system/page.jsp" %>
                </td>
            </tr>
        </table>
    </div>
</form>

<%@ include file="/manage/system/baseFoot.jsp" %>